Shorten the cargo integration test directory name
authorAlex Crichton <alex@alexcrichton.com>
Wed, 17 Sep 2014 15:30:35 +0000 (08:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 17 Sep 2014 15:30:35 +0000 (08:30 -0700)
Right now the win64 snapshot builders are failing to produce a snapshot, and
I've managed to track it down to a path length issue. Windows paths have a
maximum of 260 characters, and the characters add up pretty fast for a path
like:

    c:\bot\slave\cargo-nightly-win-64
      \build\target\x86_64-w64-mingw32
      \cargo-integration-test\home\.cargo
      \git\checkouts\meta-dep-<hash>\
      \$SHA\.git\...

The normal builders aren't failing I presume because `cargo-nightly-win-64` is
longer than `cargo-win64-64` (we must be *right up* against the limit). I've
confirmed that this shortening fixes the tests on the bots.

tests/support/paths.rs

index 8acdc83e7c61294e7a0dc3ac41d67727b2c4151a..126fafeaf754a3c8f2f4dc9cb287ed41d6d467f2 100644 (file)
@@ -5,7 +5,7 @@ use std::{io, os};
 
 use cargo::util::realpath;
 
-static CARGO_INTEGRATION_TEST_DIR : &'static str = "cargo-integration-tests";
+static CARGO_INTEGRATION_TEST_DIR : &'static str = "cit";
 
 local_data_key!(task_id: uint)